.file-item {
    padding: 8px;
    cursor: pointer;
}

.folder {
    color: #2c3e50;
}

.file {
    color: #7f8c8d;
}

ul {
    list-style: none;
    padding-left: 30px;
}

#back-btn {
    position: relative;
    /* 非 fixed 定位时需确认容器布局 */
    z-index: 1;
    /* 确保按钮可见性‌:ml-citation{ref="8" data="citationList"} */
}

.btli {
    padding-left: 100px;
}

.trash-btn:hover {
    background-color: transparent;
    transform: scale(1.5);
}

/* 图标颜色 */
.fa-trash {
    color: rgb(244, 9, 9);
    font-size: 10px;
}

#file-tree {
    display: flex;
    gap: 100px;
    border: 1px solid #ccc;
}

/* 通用按钮样式 */
.action-btn {
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 50%;
    padding: 10px;
    padding-left: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 上传按钮特定样式 */
.upload-btn:hover {
    background-color: transparent;
    transform: scale(1.5);
}

/* 上传按钮特定样式 */
.replace-btn:hover {
    background-color: transparent;
    transform: scale(1.5);
}

/* 上传按钮特定样式 */
.rename-btn:hover {
    background-color: transparent;
    transform: scale(1.5);
}

.back-btn {
    background-color: transparent;
    border: none;
    border-radius: 50%;
    padding: 15px;
    padding-left: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 25px
}


/* 文件项使用 Flex 布局 */
.file-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 左侧容器布局 */
.left-container {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* 右侧操作按钮布局 */
.right-container {
    margin-left: auto;
    display: flex;
    gap: 8px;
    padding-left: 100px;
}

/* 按钮样式调整 */
.trash-btn,
.replace-btn,
.rename-btn {
    padding: 4px 8px;
    font-size: 0.9em;
}

.file-item .checkbox-container {
    margin-right: 8px;
    display: flex;
    align-items: center;
}

.file-checkbox {
    cursor: pointer;
    accent-color: #2196F3;
}


.action-column-del{
    width: 40px;
}

.action-column-rename{
    width: 60px;
}

.content {
    display: flex;
    flex-direction: column;
    /* 垂直排列 */
    background: #f5f5f5;
    width: 60%;
    /* height: 800px; */
    height: 80vh;
    margin: 0 auto;
    margin-top: 100px;
}


.spacer {
    flex: 1;
    height: 10px;
}

#nav-bar {
    background-color: transparent;
    display: flex;
    justify-content: center;    
    margin: 0 auto;    
    gap: 10px;
    width: 60%;       
}

.file-row td {
    padding: 8px;
    border-bottom: 1px solid #eee;
}

/* 弹窗样式 */
.modal {
    /* 定位与尺寸 */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* 精确居中 */
    width: 50vw;
    /* 视口宽度的50% */
    height: 50vh;
    /* 视口高度的50% */
    max-width: 100%;
    /* 防止超出屏幕 */

    /* 滚动处理 */
    overflow-y: none;
    /* 垂直溢出时显示滚动条 */

    /* 视觉样式 */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    /* 毛玻璃效果 */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

    /* 布局控制 */
    display: none;
    /* 默认隐藏 */
    flex-direction: column;
    /* 内容垂直排列 */
}

.modal-tip {
    width: 100%;
    display: flex;
    gap: 8px;
    justify-content: center;
}

/* 当需要显示时添加active类 */
.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    min-width: 400px;
    /* 最小宽度 */
    max-width: 100%;
    /* 最大宽度限制 */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    max-height: 80%;
    /* 防止过高 */
    overflow-y: auto;
    /* 内容过多时滚动 */

    flex: 1;
    /* 占据剩余空间 */

    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.95)
}

/* 操作按钮容器 */
.modal-actions {
    bottom: 0;
    background: white;
    padding: 12px 16px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 8px;
    justify-content: center;
}

/* 取消按钮样式 */
#cancel-all-button {
    background: #ff4444;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

#cancel-all-button:hover {
    background: #cc0000;
}

.progress-container {
    margin: 20px 0;
}

.progress-bar {
    height: 20px;
    background: #09ce7c;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: #4CAF50;
    transition: width 0.3s ease;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

.file-info {
    margin: 10px 0;
    color: #666;
}

.cancel-btn {
    background: #e9d225;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    float: right;
}

.complate-btn {
    background: #1ec205;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    float: right;
}


/* 新增多文件样式 */
.upload-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.upload-progress {
    display: flex;
    align-items: center;
    margin: 8px 0;
}

.file-info {
    flex: 1;
    min-width: 120px;
}

.progress-container {
    flex: 3;
    margin: 0 15px;
}

.error-message {
    color: #ff4444;
    font-size: 0.9em;
}